@baseColor: #e6e6e6;
@border: 1rpx solid @baseColor;

#chat-box {
    height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    background: @baseColor;

    #msg-box {
        width: 100%;
        overflow: scroll;
        transition: all 1s;
        transform: rotate(180deg);
        transition: all 0.3s;
        flex: 1;
        .content {
            height: 100%;
            display: flex;
            flex-direction: column;
        }
        .createtime{
            text-align:center;
            transform:rotate(180deg);
            color:#333;
            font-size:26rpx;
            margin:15rpx;
            position:relative;
            z-index:-1;
        }
        .msg {
          display: flex;
          padding: 0 20rpx;
          margin-top: 30rpx;
          transform: rotate(180deg);

          .f {
            width: 70rpx;
            height: 70rpx;
            border-radius: 8rpx;
            background: #fff;
            line-height: 70rpx;
            text-align: center;
            font-size: 40rpx;
            font-weight: bold;
            color: #bfbfbf;
    
            image {
              width: 100%;
              height: 100%;
            }
          }
    
          &.right {
            justify-content: flex-end;
            position: relative;

            .c {
              background: #95ec69;
    
              &.no-bg {
                background: #fff;
              }
    
              &::before {
                right: -15rpx;
              }
            }
    
            .b {
              min-width: 200rpx;
    
              &.emoji {
                min-width: 60rpx;
                width: 100rpx;
                height: 100rpx;
              }
            }
    
            .f {
              margin-left: 25rpx;
            }
          }
    
          &.left {
            justify-content: flex-start;
    
            .c {
              background: #fff;
    
              &::before {
                left: -1rpx;
              }
            }
    
            .f {
              margin-right: 25rpx;
            }
    
            .b {
              min-width: 200rpx;
    
              &.emoji {
                min-width: 60rpx;
                width: 100rpx;
                height: 100rpx;
              }
            }
    
            .name {
              margin-bottom: 4rpx;
              line-height: 100%;
              color: #333;
              font-size: 24rpx;
            }
          }
    
         
    
          .c {
            max-width: 450rpx;
            padding: 15rpx 20rpx;
            font-size: 32rpx;
            border-radius: 8rpx;
            text-align: justify;
            position: relative;
            display: flex;
            align-items: center;
    
            .file-card {
              display: flex;
              min-width: 450rpx;
    
              .info {
                flex: 1;
    
                .title {
                  word-break: break-all;
                  display: -webkit-box;
                  -webkit-box-orient: vertical;
                  -webkit-line-clamp: 2;
                  overflow: hidden;
                  text-overflow: ellipsis;
                }
    
                .size {
                  color: #bfbfbf;
                  font-size: 28rpx;
                  margin-top: 10rpx;
                }
              }
    
              .file-icon {
                width: 70rpx;
                height: 70rpx;
                margin: 10rpx 0 0 15rpx;
    
                &.doc,
                &.docx {
                  background: url(@/static/doc/word.png);
                  background-size: contain;
                }
    
                &.pdf,
                &.PDF {
                  background: url(@/static/doc/pdf.png);
                  background-size: contain;
                }
    
                &.xlsx {
                  background: url(@/static/doc/xlsx.png);
                  background-size: contain;
                }
    
                &.txt {
                  background: url(@/static/doc/txt.png);
                  background-size: contain;
                }
    
                &.other {
                  background: url(@/static/doc/other.png);
                  background-size: contain;
                }
              }
            }
    
            &::before {
              content: '';
              width: 20rpx;
              height: 20rpx;
              border-radius: 3rpx;
              position: absolute;
              transform: rotate(-45deg) translateX(-50%);
              top: 18rpx;
              background: inherit;
            }
          }
    
          .b {
            border-radius: 8rpx;
          }
        }
    
        .revoke {
          position: absolute;
          top: -40rpx;
          text-align: right;
          margin-right: 90rpx;
          font-size: 26rpx;
          margin-bottom: 15rpx;
          z-index: 99999;
        }
    }
}

#send {
    position: fixed;
    bottom: 0;
    width: 100%;
    display: flex;
    z-index:999;
    width: calc(100% - 30rpx);
    padding: 11rpx 15rpx;
    align-items: flex-end;
    background: #f4f4f4;
    border-bottom: 1rpx solid @baseColor;
    border-top: 1rpx solid @baseColor;
    transition: bottom 0.3s;

    ::-webkit-scrollbar {
        width: 0;
        height: 0;
        color: transparent;
        display: none;
    }
    // .icon{
    //   margin:0 10rpx;
    //   margin-bottom:4rpx;
    // }
    .text {
      max-height: 218px;
      overflow-y: scroll;
      flex: 1;
      padding: 18rpx;
      background: #fff;
      margin-right: 10rpx;
      margin-left: 10rpx;
      border-radius: 10rpx;

      .textarea {
        width: 100%;
        margin: 0;
        padding: 0;
        outline: none;
        font-size: 30rpx;
        caret-color: #95ec69;
      }
    }

    .iconfont {
      &.icon-smile{
          margin:0 15rpx;
      }
      font-size: 66rpx;
    }

    .audio {
      margin-bottom: -3rpx;
    }

    .face {
      margin-right: 10rpx;
      margin-bottom: -3rpx;
    }

    .other {
      margin-bottom: -3rpx;
    }

    .send-handle {
      width: 0;
      padding: 0;
      margin: 0;
    //   height: 62rpx;
    //   line-height: 62rpx;
    //   font-size: 28rpx;
    //   background-color: #07c160;
      color: #fff;
      overflow: hidden;
      transition: all 0.2s;

      &::after {
        border: none;
      }

      &.show {
        width: 120rpx;
      }
    }
}

#others {
    position: fixed;
    bottom: 0;
    width: 100%;
    transform: translateY(100%);
    transition: all 0.15s;
    background: #f4f4f4;
    border:1px solid red;
    &.show {
      transform: translateY(0);
    }

    .tools {
      display: flex;
      padding: 70rpx 70rpx 10rpx 70rpx;
      justify-content: space-between;

      .t {
        width: 110rpx;
        height: 110rpx;
        background: #fff;
        border-radius: 30rpx;
        position: relative;

        text {
          position: absolute;
          bottom: -40rpx;
          font-size: 24rpx;
          line-height: 1;
          width: 110rpx;
          left: 0;
          text-align: center;
          color: #333;
        }
      }

      .iconfont {
        // font-size: 46rpx;
        text-align: center;
        background:red;
      }
    }

    .emoji {
      height: calc(100% - 30rpx);
      overflow-y: scroll;
      padding: 15rpx;

      .emoji-img {
        width: 72rpx;
        height: 72rpx;
        margin: 15rpx;
      }
    }
  }